package com.learn.ert.service.impl;

import com.learn.ert.mapper.ErLeaveMapper;
import com.learn.ert.pojo.ErLeaveEntity;
import com.learn.ert.service.ErLeaveService;
import com.learn.ert.utils.PageUtils;
import com.learn.ert.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("erLeaveService")
public class ErLeaveServiceImpl extends ServiceImpl<ErLeaveMapper, ErLeaveEntity> implements ErLeaveService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ErLeaveEntity> page = this.page(
                new Query<ErLeaveEntity>().getPage(params),
                new QueryWrapper<ErLeaveEntity>()
        );

        return new PageUtils(page);
    }

}